# from selenium import webdriver

class Base():
    def __init__(self,driver):
        self.driver = driver
        # self.driver = webdriver.Edge()
    def get_url(self,url):
        self.driver.get(url)

    def get_text(self,loc):
        return self.find_ele(loc).text
    def find_ele(self,loc):
        return self.driver.find_element(*loc)
    def click(self,loc):
        self.find_ele(loc).click()
    def send_keys(self,loc,c):
        self.find_ele(loc).send_keys(c)
    def close(self):
        self.driver.close()